import java.util.*

fun main() {
    val white = Player(players[0])
    val black = Player(players[1])
    val control = Control()
    //展示棋盘
    control.showChessbroad()
    while(true){
        //白下棋
        control.drop(white.playChess())
        //展示棋盘
        control.showChessbroad()
        //判断是否胜利
        if(control.checkWin()){
            //输出胜利语句
            control.win(currentPlayer)
            return
        }
        control.switchPlayer()
        //黑下棋
        control.drop(black.playChess())
        //展示棋盘
        control.showChessbroad()
        //判断是否胜利
        if(control.checkWin()){
            //输出胜利语句
            control.win(currentPlayer)
            return
        }
    }
}